﻿<UserControl x:Class="Shatkotha.WPF.SMS.Views.NewSmsWizardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" MinHeight="350" MinWidth="550">
    <UserControl.Resources>
        <DataTemplate x:Key="personTemplate">
            <Label Content="{Binding Name}"></Label>
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <StackPanel>
            <TextBlock Margin="5">Filter recipient</TextBlock>
            <TextBox Margin="5"/>
            <StackPanel Orientation="Horizontal">
                <ListBox x:Name="ListBoxPersons" ItemTemplate="{StaticResource personTemplate}" ItemsSource="{Binding PersonCollection}" Margin="5" Background="#f4f4f4" Height="200" Width="220">
                </ListBox>
                <StackPanel Margin="5">
                    <Button Margin="5" Command="{Binding AddAllCommand}">Add All</Button>
                    <Button Margin="5" Command="{Binding AddCommand}">Add</Button>
                    <Button Margin="5" Command="{Binding RemoveCommand}">Remove</Button>
                    <Button Margin="5" Command="{Binding RemoveAllCommand}">Remove All</Button>
                </StackPanel>
                <ListBox x:Name="ListBoxSelectedPersons" ItemTemplate="{StaticResource personTemplate}" ItemsSource="{Binding SelectedPersonCollection}" Margin="5" Background="#f4f4f4" Height="200" Width="220"></ListBox>
            </StackPanel>
            <TextBlock Margin="5">Message text</TextBlock>
            <TextBox Margin="5" Height="100" Text="{Binding MessageText}"></TextBox>
        </StackPanel>
    </Grid>
</UserControl>
